import requests
import json
def get_tpwd():
    url = r"http://127.0.0.1:9095/api/item/matpwd?q=女装"
    response = requests.get(url)
    res_json = response.json()
    if 'error' in res_json.keys():
        return None
    elif 'tpwd_list' in res_json.keys():
        return res_json['tpwd_list']
    return None


def split_test():
    test_str = "找券=女鞋"
    str_arr = test_str.split("=")
    if len(str_arr) > 1:
        print('数组长度大于1')
        print(str_arr[1])
    print(str_arr)

if __name__ == "__main__":
    # res_list = get_tpwd()
    # if res_list:
    #     # print(res_list)
    #     for tpwd in res_list:
    #         print(tpwd['tpwd_str'])
    split_test()